import axios from "axios";
import {LoginParamsType} from "../../type/login.ts";
import {Prefix} from "../commonPrefix/Prefix.ts";
// import {md5} from 'md5js'

export class LoginApi extends Prefix{

    public static login(params: LoginParamsType) {
        // params.password = md5(params.password,32).split("").reverse().join("")
        return axios.post(this.prefix + '/login', params)
    }
}
